<template>
  <div class="refresh-list-view-container">
    <van-pull-refresh
      v-model="refreshing"
      @refresh="reloadList"
      class="pull-refresh"
    >
      <van-list
        v-model="loading"
        :finished="finished"
        :immediate-check="false"
        @load="queryList"
      >
        <div class="list" v-if="list.length > 0">
          <slot></slot>
        </div>
        <empty-view v-else />
      </van-list>
    </van-pull-refresh>
  </div>
</template>

<script>
import EmptyView from '@/components/EmptyView'
export default {
  components: { EmptyView },
  data() {
    return {}
  },
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
